<template>
  <div>
    <div class="datarow">
      <div class="data-item c1">
        <div class="icon">
          <el-icon :size="25" color="#FFA42F">
            <i-ep-Postcard />
          </el-icon>
        </div>
        <div class="content">
          <p>注册用户总数：1008 </p>
        </div>
      </div>
      <div class="data-item c2">
        <div class="icon">
          <el-icon :size="25" color="#FB575E">
            <i-ep-document />
          </el-icon>
        </div>
        <div class="content">
          <p>用户简历总数：2180 </p>
        </div>
      </div>
    </div>
    <div class="chart" id="chart"></div>
  </div>
</template>


<style scoped>
.datarow {
  width: 90%;
  margin: 20px auto;
  display: flex;
}
.data-item {
  width: 250px;
  height: 80px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  color: white;
  padding: 15px;
  box-sizing: border-box;
  margin-right: 20px;
  font-size: 18px;
  margin-top: 10px;
}
.data-item:hover {
  box-shadow: 0 0 3px #555555;
  cursor: pointer;
}
.c1 {
  background: #FFA42F;
}
.c2 {
  background: #FB575E;
}
.icon {
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background: white;
  text-align: center;
  padding: 7px;
  box-sizing: border-box;
}
.content {
  margin-left: 15px;
}
.chart {
  width: 90%;
  border-radius: 6px;
  margin: 30px auto;
  box-shadow: 0 0 5px #ccc;
  height: 300px;
  padding: 20px 0 0 0;
}
</style>